package com.itheima.web.interceptor;

import com.itheima.domain.db.Admin;

public class AdminHolder {
    public static ThreadLocal<Admin> adminTL=new ThreadLocal<>();
    public static void setAdmin(Admin admin){
        adminTL.set(admin);
    }
    public static Admin getAdmin(){
        return adminTL.get();
    }
    public static void remove(){
        adminTL.remove();
    }
}
